package com.study.jwt.service;

import com.study.jwt.bean.User;
import com.study.jwt.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @description:
 * @author: Leo
 * @createDate: 2020/4/27
 * @version: 1.0
 */
@Service("UserService")
public class UserService
{
    @Autowired
    UserMapper userMapper;

    public User findByUsername(User user){
        return userMapper.findByUsername(user.getUsername());
    }
    public User findUserById(String userId) {
        return userMapper.findUserById(userId);
    }
}
